package com.gdkm.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gdkm.po.Student;
import com.gdkm.po.UserManagement;
import com.gdkm.service.PersonCenterService;

@Controller
public class PersonCenterController {
	@Autowired
	PersonCenterService service;
	
	@RequestMapping("/person")
	public String y() {
		return "person";
	}
	@RequestMapping("/Jk")
	public String Jk() {
		return "Jk";
	}
	@RequestMapping("/update")
	public String update(UserManagement stu) {
		service.update(stu);
		System.out.print(stu);
		return "xiugai";
	}
	@RequestMapping("/uregister")
	public String uregister() {
		return "uregister";
	}
}
